package com.shop.prj.service.impl;

import com.shop.prj.bean.ShopCar;
import com.shop.prj.dao.ShopCarDao;
import com.shop.prj.dao.Impl.ShopCarDaoImpl;
import com.shop.prj.service.ShopCarService;

import java.util.List;

public class ShopCarServiceImpl implements ShopCarService {
	 ShopCarDao shopCarDao=new ShopCarDaoImpl();
    @Override
    public int insert(ShopCar shopCar) {
        return shopCarDao.insert(shopCar);
    }

    @Override
    public int update(ShopCar shopCar) {
        return shopCarDao.update(shopCar);
    }

    @Override
    public int delete(Integer id) {
        return shopCarDao.delete(id);
    }

    @Override
    public List<ShopCar> queryAll() {
        return shopCarDao.queryAll();
    }

	@Override
	public ShopCar queryshopCar(String bookName) {
		// TODO Auto-generated method stub
		return shopCarDao.queryshopCar(bookName);
	}
}
